home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / E-P-O.ZIP / P4_TEST.POV < prev    next >
Encoding:
Text File  |  1996-08-31  |  4.5 KB  |  142 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "p4_test.pov" - The main test file for the people.
  6. //
  7. // "Paul's Primitive POV People", or "P4".
  8. //
  9. // Created by: Paul T. Dawson
  10. //             ptdawson@voicenet.com
  11. //             http://www.voicenet.com/~ptdawson
  12. //
  13. // The purpose of this file is to let you design and test one "person"
  14. // with a simple scene. Then, when you have all of the settings just
  15. // right, you can add the "person" to your own scene.
  16.  
  17. //------------------------------------------------------------------->
  18. //------------------------------------------------------------------->
  19. //
  20. // The standard initialization stuff.
  21.  
  22.         #include "colors.inc"
  23.         #include "textures.inc"
  24.         #include "skies.inc"
  25.         #include "golds.inc"
  26.         #include "stones.inc"
  27.         #default { finish { Shiny } }
  28.  
  29. //------------------------------------------------------------------->
  30. //------------------------------------------------------------------->
  31. //
  32. // Choose a camera. These are approximate, and will need adjusting!
  33. //
  34. // 1 = Far away.
  35. // 2 = Head.
  36. // 3 = Side of head.
  37. // 4 = Shoes (to see if feet are on floor!).
  38. // 5 = Really far away.
  39. // 6 = Back view.
  40. // 7 = Front view - head to waist.
  41.  
  42.         #declare P4_Which_Camera = 1
  43.  
  44. //------------------------------------------------------------------->
  45. //------------------------------------------------------------------->
  46. //
  47. // Choose the file to test.
  48.  
  49.         #declare P4_FILENAME = "p4def_01.inc"
  50.  
  51. //------------------------------------------------------------------->
  52. //------------------------------------------------------------------->
  53. //
  54. // Set up the camera.
  55.  
  56.         #if ( P4_Which_Camera = 1 )
  57.                 camera { location < 0, 36, -150 > look_at < 0, 36, 0 > }
  58.         #end
  59.  
  60.         #if ( P4_Which_Camera = 2 )
  61.                 camera { location < 0, 45, -45 > look_at < 0, 45, 0 > }
  62.         #end
  63.  
  64.         #if ( P4_Which_Camera = 3 )
  65.                 camera { location < -70, 75, -40 > look_at < -70, 75, 0 > }
  66.         #end
  67.  
  68.         #if ( P4_Which_Camera = 4 )
  69.                 camera { location < 0, 1, -30 > look_at < 0, 0, 0 > }
  70.         #end
  71.  
  72.         #if ( P4_Which_Camera = 5 )
  73.                 camera { location < 0, 36, -300 > look_at < 0, 36, 0 > }
  74.         #end
  75.  
  76.         #if ( P4_Which_Camera = 6 )
  77.                 camera { location < 70, 24, -85 > look_at < 70, 24, 0 > }
  78.         #end
  79.  
  80.         #if ( P4_Which_Camera = 7 )
  81.                 camera { location < 0, 36, -60 > look_at < 0, 36, 0 > }
  82.         #end
  83.  
  84. //------------------------------------------------------------------->
  85. //------------------------------------------------------------------->
  86. //
  87. // Simple lights, floor, and background.
  88.  
  89.         light_source { < -50, 50, -200 > color White}
  90.         light_source { <   0, 50, -200 > color White}
  91.         light_source { <  50, 50, -200 > color White}
  92.  
  93.         cylinder { < 0, 0, 0 > < 0, -1, 0 >, 200 pigment { Cyan } }
  94.  
  95.         background { Gray20 }
  96.  
  97. //------------------------------------------------------------------->
  98. //------------------------------------------------------------------->
  99. //
  100. // These posts show how tall your person is (12 inch squares).
  101.  
  102.         #declare A = -35 #while ( A <= 35 )
  103.  
  104.         box { < -3, 0, -3 > < 3, 100, 3 >
  105.                 pigment { checker White, Black scale 12 }
  106.                 translate x * A }
  107.  
  108.         #declare A = A + 70 #end
  109.  
  110. //------------------------------------------------------------------->
  111. //------------------------------------------------------------------->
  112. //
  113. // This is the random number seed (required!).
  114.  
  115.         #declare P4_RAND = seed(0)
  116.  
  117. //------------------------------------------------------------------->
  118. //------------------------------------------------------------------->
  119. //
  120. // Go and set the variables, and create the object.
  121.  
  122.         #include P4_FILENAME
  123.  
  124. //------------------------------------------------------------------->
  125. //------------------------------------------------------------------->
  126. //
  127. // Now show the person three times.
  128.  
  129.         object { One_Person  rotate y * 90
  130.                 translate x * -70 }
  131.  
  132.         object { One_Person }
  133.  
  134.         object { One_Person rotate y * 180
  135.                 translate x * 70 }
  136.  
  137. //------------------------------------------------------------------->
  138. //------------------------------------------------------------------->
  139. //
  140. // End of this file.
  141.  
  142.